<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/6/006
 * Time: 11:25
 */

namespace app\admin\validate;


use think\Validate;

class Category extends Validate
{
    protected $rule = [
        'cate_name'  =>  'require|max:10|min:2|chs',
    ];

    protected $message = [
        'cate_name.require'  =>  '请填写分类名称',
        'cate_name.chs'  =>  '分类名称只能为汉字',
        'cate_name.max'  =>  '分类名称最长不能超过10个字符',
        'cate_name.min'  =>  '分类名称最少为2个字符',
    ];
}